package com.jisf.driver.entity.enumtype;

import com.alibaba.fastjson.annotation.JSONType;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Classname DelFlagEnum
 * @Description TODO 逻辑删除
 * @Date 2022/4/23 14:48
 * @Created by jisf：【429627912@qq.com】
 */
//@JSONType(serializeEnumAsJavaBean = true)
public enum DelFlagEnum implements BaseEnum<DelFlagEnum, Integer> {
    NO_DELETE(0, "未删除"),
    HAVE_DELETE(1, "已删除"),
    ;

//    @EnumValue
    private Integer code;

    @JsonValue
    private String name;

    DelFlagEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
